package com.duubee.btframe.auth.vo;

import com.fasterxml.jackson.annotation.JsonInclude;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class AuthResponse extends AuthBody {


    private Integer code;

    private Boolean success;

    private String user;

    public static AuthResponse error(Integer code){
        AuthResponse authResponse = new AuthResponse();
        authResponse.code = code;
        authResponse.success = false;
        return authResponse;
    }

//    public static AuthResponse success(AuthBody authBody){
//        return
//    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

}
